<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.*" %>
<%@page import="model.UserBean" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Customizer</title>
    </head>
    <body>
        <a href="<%=request.getContextPath()%>/signup2.jsp">back</a>
        <table width="100%"border="1">
            <tr>
               <th>Nama</th>
               <th>Alamat</th>
               <th>NoTelp</th>
               <th>Jenis Kelamin</th>
               <th>Email</th>
               <th>Username</th>
               <th>Password</th>
               <th>action</th>
            </tr>
            <%
               List list = (List)request.getAttribute("list");
               if(list!=null)
                   {
                     for(int i=0 ; i< list.size();i++)
                         {
                           UserBean ubean =(UserBean) list.get(i);

            %>
                <tr>
                    <td><%=ubean.getNama()%></td>
                    <td><%=ubean.getAlamat()%></td>
                    <td><%=ubean.getNoTelp()%></td>
                    <td><%=ubean.getJenisKelamin()%></td>
                    <td><%=ubean.getEmail()%></td>
                    <td><%=ubean.getUsername()%></td>
                    <td><%=ubean.getPassword()%></td>
                    
                    <td><a href="ControllerServlet?action=edit&Username=<%=ubean.getUsername()%>">update</a>
                        |
                        <a href="ControllerServlet?action=delete&Username=<%=ubean.getUsername()%>">delete</a>
                </tr>
            <%
                         }
                   }
             %>
        </table>
               
    </body>
</html>
